package com.geline.demo.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.geline.easyexcel.annotation.ExcelDropDown;
import com.geline.easyexcel.annotation.ExcelImport;
import com.geline.easyexcel.domain.DropDownType;
import com.geline.easytrans.annotation.TransDict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@ExcelImport(value = "pipeBuiltDict")
@Getter
@Setter
public class PipeBuiltDictVO implements Serializable {

    @Schema(description = "管廊类型")
    @TransDict(dictType = "gallery_type", source = "pipeTypeLabel")
    private String pipeType;

    //多选下拉
    @ExcelProperty(value = "管廊类型", index = 5)
    @ExcelDropDown(index = 5, dictName = "管廊类型", dictCode = "gallery_type", type = DropDownType.CHECKBOX)
    @TransDict(dictType = "gallery_type", source = "pipeType")
    private String pipeTypeLabel;

    @Schema(description = "投融资模式")
    @TransDict(dictType = "gallery_invest_type", source = "financingModeLabel")
    private String financingMode;

    //单选下拉
    @ExcelProperty(value = "投融资模式", index = 4)
    @ExcelDropDown(index = 15, dictName = "投融资模式", dictCode = "gallery_invest_type")
    @TransDict(dictType = "gallery_invest_type", source = "financingMode")
    private String financingModeLabel;
}
